package config

import "fmt"


/*
	在实验前，需要先对rabbitmq认证进行配置
	rabbitmqctl add_user guest guest
	rabbitmqctl set_permissions guest ".*" ".*" ".*"
*/
const (
	AMQPHost = "localhost"
	AMQPPort = "5672"
	AMQPUser = "guest"
	AMQPPasswd = "guest"
	AMQPVhost = "/"
)

func GenURLFromConfig() string{
	return fmt.Sprintf("amqp://%s:%s@%s:%s%s", AMQPUser, AMQPPasswd, AMQPHost, AMQPPort, AMQPVhost)
}